﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;
using static MPICore.EnumCenter;

namespace MPICore.PhoneBook.PhoneNumber
{
    /// <summary>
    /// 电话号码
    /// </summary>
    public class PhoneNumber: Entity<long>,IHasCreationTime
    {
        /// <summary>
        /// 号码
        /// </summary>
        [Required]
        [MaxLength(11)]
        public string Number { set; get; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreationTime { set; get; }

        public PhoneNumberType Type { set; get; }

        public int PersonId { set; get; }

        public Person.Person Person { set; get; }
    }
}
